package com.qf.day07.poly01;

public class Dagger extends Weaponry{
    private int attack;//攻击

    public Dagger() {
    }

    public Dagger(int attack) {
        this.attack = attack;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    @Override
    public String toString() {
        return "Dagger{" +
                "attack=" + attack +
                "} " + super.toString();
    }
}
